
<p-card [style]="{width: '360px'}">

  <div class="ui-card-content">

    <div class="ui-g-12 ui-md-12">
      <div class="ui-inputgroup">
        <span class="ui-inputgroup-addon">标题</span>
        <input [(ngModel)]="news.title" type="text" pInputText placeholder="请输入标题">

      </div>
    </div>

    <div class="ui-g-12 ui-md-12">
      <div class="ui-inputgroup">
        <span class="ui-inputgroup-addon">作者</span>
        <input [(ngModel)]="news.author" type="text" pInputText placeholder="请输入作者">

      </div>
    </div>

    <p-editor [(ngModel)]="news.content"  [style]="{'height':'320px','width':'320px'}"></p-editor>

  </div>


  <p-footer>
    <p-button label="保存" (click)="save()" ></p-button>
  </p-footer>




</p-card>
